package cn.tedu.oop2;
/*定义子类蚂蚁类--子实现类*/
public class Ant extends Insect implements  FlyAniaml{
    @Override
    public void fly() {
        System.out.println("蚂蚁也会飞");
    }

    @Override
    public void Spawn() {
        System.out.println("蚂蚁产卵数为"+eggNumber);
    }
}
